'use strict';
const ossParam = require("../util/ossUtil/aliyun.js")
const OSS = require("ali-oss");
const ossClient = new OSS({
	region: ossParam.region,
	accessKeyId: ossParam.accessid,
	accessKeySecret: ossParam.accesskey,
	bucket: ossParam.bucket
});
import base
module.exports = {
	/**
	 * 上传图片、视频
	 * @url admin/upload/pub/add 前端调用的url参数地址
	 * data 请求参数 说明
	 * @param {String} file  路径
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: "" };
		// 业务逻辑开始-----------------------------------------------------------
		let { file } = data;
		
		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
